summaryrefslogtreecommitdiffstats
path: root/fs/ext4/extents.c
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2015-07-17 17:16:47 +0200
committerTheodore Ts'o <tytso@mit.edu>2015-07-17 17:16:47 +0200
commit806c24adf74ec02543e4dcad989c0336f9fe82c4 (patch)
tree6d33a92a1ae98cdc792d304daf636882f48aedcb /fs/ext4/extents.c
parentjbd2: speedup jbd2_journal_dirty_metadata() (diff)
downloadlinux-806c24adf74ec02543e4dcad989c0336f9fe82c4.tar.xz
linux-806c24adf74ec02543e4dcad989c0336f9fe82c4.zip
ext4 crypto: use a jbd2 transaction when adding a crypto policy
Start a jbd2 transaction, and mark the inode dirty on the inode under that transaction after setting the encrypt flag. Otherwise if the directory isn't modified after setting the crypto policy, the encrypted flag might not survive the inode getting pushed out from memory, or the the file system getting unmounted and remounted. Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/extents.c')
0 files changed, 0 insertions, 0 deletions