hfsplus: protect setflags using i_mutex
authorChristoph Hellwig <hch@lst.de>
Fri, 1 Oct 2010 03:41:35 +0000 (05:41 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 1 Oct 2010 03:41:35 +0000 (05:41 +0200)
commit6333816ade7e04a96ec0a34a8378c455e4f7c4dd
treebd6f3fc3d929b44cffea4319f6bda828b6704269
parent94744567fef9602c3d8218a1d8f58c04cce354f6
hfsplus: protect setflags using i_mutex

Use i_mutex for protecting against concurrent setflags ioctls like in
other filesystems and get rid of the BKL in hfsplus_ioctl.

Signed-off-by: Christoph Hellwig <hch@tuxera.com>
fs/hfsplus/ioctl.c