diff options
author | Djalal Harouni <tixxdz@opendz.org> | 2012-01-09 15:58:37 +0100 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2012-01-11 13:39:02 +0100 |
commit | 34b07840565004cfa444e165e88bf77a5cbcdb25 (patch) | |
tree | d1a642967e1bebc62779d367b73cd31db52634d7 /fs/ext2/ext2.h | |
parent | 353b67d8ced4dc53281c88150ad295e24bc4b4c5 (diff) | |
download | op-kernel-dev-34b07840565004cfa444e165e88bf77a5cbcdb25.zip op-kernel-dev-34b07840565004cfa444e165e88bf77a5cbcdb25.tar.gz |
ext2: protect inode changes in the SETVERSION and SETFLAGS ioctls
Unlock mutex after i_flags and i_ctime updates in the EXT2_IOC_SETFLAGS
ioctl.
Use i_mutex in the EXT2_IOC_SETVERSION ioctl to protect i_ctime and
i_generation updates and make the ioctl consistent since i_mutex is
also used in other places to protect timestamps and inode changes.
Cc: Andreas Dilger <adilger.kernel@dilger.ca>
Cc: Jan Kara <jack@suse.cz>
Signed-off-by: Djalal Harouni <tixxdz@opendz.org>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/ext2/ext2.h')
0 files changed, 0 insertions, 0 deletions