The SB_BORN flag is stored in the vfs superblock, not xfs_sb. Fixes: 6f643c57d57c ("xfs: implement ->notify_failure() for XFS") Cc: Shiyang Ruan <ruansy.f...@fujitsu.com> Cc: Christoph Hellwig <h...@lst.de> Cc: Darrick J. Wong <djw...@kernel.org> Cc: Al Viro <v...@zeniv.linux.org.uk> Cc: Dave Chinner <da...@fromorbit.com> Cc: Goldwyn Rodrigues <rgold...@suse.de> Cc: Jane Chu <jane....@oracle.com> Cc: Matthew Wilcox <wi...@infradead.org> Cc: Miaohe Lin <linmia...@huawei.com> Cc: Naoya Horiguchi <naoya.horigu...@nec.com> Cc: Ritesh Harjani <rite...@linux.ibm.com> Cc: Andrew Morton <a...@linux-foundation.org> Signed-off-by: Dan Williams <dan.j.willi...@intel.com> --- fs/xfs/xfs_notify_failure.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/xfs/xfs_notify_failure.c b/fs/xfs/xfs_notify_failure.c index 01e2721589c4..5b1f9a24ed59 100644 --- a/fs/xfs/xfs_notify_failure.c +++ b/fs/xfs/xfs_notify_failure.c @@ -175,7 +175,7 @@ xfs_dax_notify_failure( u64 ddev_start; u64 ddev_end; - if (!(mp->m_sb.sb_flags & SB_BORN)) { + if (!(mp->m_super->s_flags & SB_BORN)) { xfs_warn(mp, "filesystem is not ready for notify_failure()!"); return -EIO; }