]> git.hungrycats.org Git - linux/commit
[PATCH] remove read-only/immutable checks from fat_truncate
authorHirofumi Ogawa <hirofumi@mail.parknet.co.jp>
Tue, 24 Aug 2004 04:43:21 +0000 (21:43 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 24 Aug 2004 04:43:21 +0000 (21:43 -0700)
commit99907aabcae9033fa2e92b556532838ef6c7a993
treeeb8f01c840289d11eb29fab9703a0c38728bf7a3
parent11353a39e1e6224717093a103c534b1b126a4f71
[PATCH] remove read-only/immutable checks from fat_truncate

From: Christoph Hellwig <hch@lst.de>

There's two callers:

 - the truncate path via notify_change, ->setattr, vmtruncate.  We
   already check for permissions here at the upper level
 - fat_delete_inode.  This one looks bogus to me - even if we delete
   an read-only or immutable inode we want to free the space allocated
   by it, else you leak disk blocks.

Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/fat/file.c