]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: avoid calling ext4_mark_inode_dirty() under unneeded semaphores
authorTheodore Ts'o <tytso@mit.edu>
Thu, 12 Jan 2017 03:14:49 +0000 (22:14 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 12 Jan 2017 03:14:49 +0000 (22:14 -0500)
commitaa3bd2307617f764b294a8bb6c6aecbd70d7fc84
tree9ee344855c6b41d9a3641d7ac5aa6a3dcb363ae4
parent8bcc867b9c96f879f476042624fe565b903368d6
ext4: avoid calling ext4_mark_inode_dirty() under unneeded semaphores

There is no need to call ext4_mark_inode_dirty while holding xattr_sem
or i_data_sem, so where it's easy to avoid it, move it out from the
critical region.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/inline.c
fs/ext4/inode.c