]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commitdiff
fsnotify: drop unused helper
authorDarrick J. Wong <djwong@kernel.org>
Thu, 19 Feb 2026 06:09:21 +0000 (22:09 -0800)
committerChristian Brauner <brauner@kernel.org>
Thu, 19 Feb 2026 08:12:05 +0000 (09:12 +0100)
Remove this helper now that all users have been converted to
fserror_report_metadata as of 7.0-rc1.

Cc: jack@suse.cz
Cc: amir73il@gmail.com
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Link: https://patch.msgid.link/177148129543.716249.980530449513340111.stgit@frogsfrogsfrogs
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Christian Brauner <brauner@kernel.org>
include/linux/fsnotify.h

index 28a9cb13fbfa383d75f511a2de9ceeb87bab4720..079c18bcdbde68414d6dd856728018ff6d03bceb 100644 (file)
@@ -495,19 +495,6 @@ static inline void fsnotify_change(struct dentry *dentry, unsigned int ia_valid)
                fsnotify_dentry(dentry, mask);
 }
 
-static inline int fsnotify_sb_error(struct super_block *sb, struct inode *inode,
-                                   int error)
-{
-       struct fs_error_report report = {
-               .error = error,
-               .inode = inode,
-               .sb = sb,
-       };
-
-       return fsnotify(FS_ERROR, &report, FSNOTIFY_EVENT_ERROR,
-                       NULL, NULL, NULL, 0);
-}
-
 static inline void fsnotify_mnt_attach(struct mnt_namespace *ns, struct vfsmount *mnt)
 {
        fsnotify_mnt(FS_MNT_ATTACH, ns, mnt);