mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-16 11:38:11 +00:00
vfs: add the sb_start_intwrite_trylock() helper
Needed by ext4 to test frozen fs before updating s_last_mounted. Signed-off-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu> Reviewed-by: Jan Kara <jack@suse.cz>
This commit is contained in:
parent
eee597ac93
commit
0c8e3fe35d
1 changed files with 5 additions and 0 deletions
|
@ -1597,6 +1597,11 @@ static inline void sb_start_intwrite(struct super_block *sb)
|
||||||
__sb_start_write(sb, SB_FREEZE_FS, true);
|
__sb_start_write(sb, SB_FREEZE_FS, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline int sb_start_intwrite_trylock(struct super_block *sb)
|
||||||
|
{
|
||||||
|
return __sb_start_write(sb, SB_FREEZE_FS, false);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
extern bool inode_owner_or_capable(const struct inode *inode);
|
extern bool inode_owner_or_capable(const struct inode *inode);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue