diff options
-rw-r--r-- | include/linux/fs.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 760d8da1b6c7..cac41f1bad05 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -1597,6 +1597,11 @@ static inline void sb_start_intwrite(struct super_block *sb) | |||
1597 | __sb_start_write(sb, SB_FREEZE_FS, true); | 1597 | __sb_start_write(sb, SB_FREEZE_FS, true); |
1598 | } | 1598 | } |
1599 | 1599 | ||
1600 | static inline int sb_start_intwrite_trylock(struct super_block *sb) | ||
1601 | { | ||
1602 | return __sb_start_write(sb, SB_FREEZE_FS, false); | ||
1603 | } | ||
1604 | |||
1600 | 1605 | ||
1601 | extern bool inode_owner_or_capable(const struct inode *inode); | 1606 | extern bool inode_owner_or_capable(const struct inode *inode); |
1602 | 1607 | ||