summaryrefslogtreecommitdiffstats
path: root/fs/mbcache.c
diff options
context:
space:
mode:
authorTahsin Erdogan2017-06-22 17:42:09 +0200
committerTheodore Ts'o2017-06-22 17:42:09 +0200
commit30a7eb970c3aae6f1b74b2edea896fdca1cbea38 (patch)
tree28f27a320e3f0db679e8629ea201c053c871c159 /fs/mbcache.c
parentext4: add ext4_is_quota_file() (diff)
downloadkernel-qcow2-linux-30a7eb970c3aae6f1b74b2edea896fdca1cbea38.tar.gz
kernel-qcow2-linux-30a7eb970c3aae6f1b74b2edea896fdca1cbea38.tar.xz
kernel-qcow2-linux-30a7eb970c3aae6f1b74b2edea896fdca1cbea38.zip
ext4: cleanup transaction restarts during inode deletion
During inode deletion, the number of journal credits that will be needed is hard to determine. For that reason we have journal extend/restart calls in several places. Whenever a transaction is restarted, filesystem must be in a consistent state because there is no atomicity guarantee beyond a restart call. Add ext4_xattr_ensure_credits() helper function which takes care of journal extend/restart logic. It also handles getting jbd2 write access and dirty metadata calls. This function is called at every iteration of handling an ea_inode reference. Signed-off-by: Tahsin Erdogan <tahsin@google.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/mbcache.c')
0 files changed, 0 insertions, 0 deletions