tmp_suning_uos_patched/fs/fat
Miklos Szeredi b1da47e29e [patch 3/4] fat: dont call notify_change
The FAT_IOCTL_SET_ATTRIBUTES ioctl() calls notify_change() to change
the file mode before changing the inode attributes.  Replace with
explicit calls to security_inode_setattr(), fat_setattr() and
fsnotify_change().

This is equivalent to the original.  The reason it is needed, is that
later in the series we move the immutable check into notify_change().
That would break the FAT_IOCTL_SET_ATTRIBUTES ioctl, as it needs to
perform the mode change regardless of the immutability of the file.

[Fix error if fat is built as a module.  Thanks to OGAWA Hirofumi for
noticing.]

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Acked-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
2008-07-26 20:53:27 -04:00
..
cache.c SL*B: drop kmem cache argument from constructor 2008-07-26 12:00:07 -07:00
dir.c fatfs: add UTC timestamp option 2008-07-25 10:53:34 -07:00
fatent.c fs: replace remaining __FUNCTION__ occurrences 2008-04-30 08:29:54 -07:00
file.c [patch 3/4] fat: dont call notify_change 2008-07-26 20:53:27 -04:00
inode.c SL*B: drop kmem cache argument from constructor 2008-07-26 12:00:07 -07:00
Makefile
misc.c fatfs: add UTC timestamp option 2008-07-25 10:53:34 -07:00