Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 70827
b: refs/heads/master
c: 948c6d4
h: refs/heads/master
i:
  70825: f17cf96
  70823: c396f95
v: v3
  • Loading branch information
Eric Sandeen authored and Tim Shimmin committed Oct 15, 2007
1 parent ab201b7 commit 5c9b914
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: eb9df39daf870d6f9e9528f092d506be04ebad2f
refs/heads/master: 948c6d4fd894d9c7f9ad764cedbe443aa866def2
4 changes: 4 additions & 0 deletions trunk/fs/xfs/xfs_dmapi.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,15 @@ typedef enum {
#define HAVE_DM_RIGHT_T

/* Defines for determining if an event message should be sent. */
#ifdef HAVE_DMAPI
#define DM_EVENT_ENABLED(ip, event) ( \
unlikely (XFS_MTOVFS((ip)->i_mount)->vfs_flag & VFS_DMI) && \
( ((ip)->i_d.di_dmevmask & (1 << event)) || \
((ip)->i_mount->m_dmevmask & (1 << event)) ) \
)
#else
#define DM_EVENT_ENABLED(ip, event) (0)
#endif

#define DM_XFS_VALID_FS_EVENTS ( \
(1 << DM_EVENT_PREUNMOUNT) | \
Expand Down
3 changes: 2 additions & 1 deletion trunk/fs/xfs/xfs_vfsops.c
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,7 @@ xfs_unmount(
rip = mp->m_rootip;
rvp = XFS_ITOV(rip);

#ifdef HAVE_DMAPI
if (vfsp->vfs_flag & VFS_DMI) {
error = XFS_SEND_PREUNMOUNT(mp, vfsp,
rvp, DM_RIGHT_NULL, rvp, DM_RIGHT_NULL,
Expand All @@ -584,7 +585,7 @@ xfs_unmount(
unmount_event_flags = (mp->m_dmevmask & (1<<DM_EVENT_UNMOUNT))?
0 : DM_FLAGS_UNWANTED;
}

#endif
/*
* First blow any referenced inode from this file system
* out of the reference cache, and delete the timer.
Expand Down

0 comments on commit 5c9b914

Please sign in to comment.