Displaying 5 results from an estimated 5 matches for "ocfs2_set_osb_flag".
2010 Aug 20
0
[PATCH] ocfs2: Don't delete orphaned files if we are in the process of umount.
...UM 60
diff --git a/fs/ocfs2/super.c b/fs/ocfs2/super.c
index caa7bef..327d8c4 100644
--- a/fs/ocfs2/super.c
+++ b/fs/ocfs2/super.c
@@ -1245,7 +1245,7 @@ static void ocfs2_kill_sb(struct super_block *sb)
/* Prevent further queueing of inode drop events */
spin_lock(&dentry_list_lock);
- ocfs2_set_osb_flag(osb, OCFS2_OSB_DROP_DENTRY_LOCK_IMMED);
+ ocfs2_set_osb_flag(osb, OCFS2_OSB_UMOUNT_START);
spin_unlock(&dentry_list_lock);
/* Wait for work to finish and/or remove it */
cancel_work_sync(&osb->dentry_lock_work);
--
1.5.5
2010 Jan 29
0
[PATCH 3/3] ocfs2:freeze-thaw: make it work -v2
...wait_queue_head_t osb_wipe_event;
+ /* osb_freeze_work is protected by osb->s_bdev->bd_fsfreeze_mutex */
+ struct work_struct osb_freeze_work;
struct ocfs2_orphan_scan osb_orphan_scan;
/* used to protect metaecc calculation check of xattr. */
@@ -531,6 +536,13 @@ static inline void ocfs2_set_osb_flag(struct ocfs2_super *osb,
spin_unlock(&osb->osb_lock);
}
+static inline void ocfs2_clear_osb_flag(struct ocfs2_super *osb,
+ unsigned long flag)
+{
+ spin_lock(&osb->osb_lock);
+ osb->osb_flags &= ~flag;
+ spin_unlock(&osb->osb_lock);
+}
static inline unsigned...
2015 Oct 14
1
Ocfs2-devel Digest, Vol 138, Issue 31 review
...donly state (default)
> + * Return EIO so that only the process errs
> + * Fix the error as if fsck.ocfs2 -y
> + * panic
> + */
> +static int ocfs2_handle_error(struct super_block *sb)
> {
> struct ocfs2_super *osb = OCFS2_SB(sb);
> + int rv = 0;
> +
> + ocfs2_set_osb_flag(osb, OCFS2_OSB_ERROR_FS);
> + pr_crit("On-disk corruption discovered. "
> + "Please run fsck.ocfs2 once the filesystem is unmounted.\n");
>
> - if (osb->s_mount_opt & OCFS2_MOUNT_ERRORS_PANIC)
> + if (osb->s_mount_opt & OCFS2_...
2015 Oct 14
1
Ocfs2-devel Digest, Vol 138, Issue 31 review
...donly state (default)
> + * Return EIO so that only the process errs
> + * Fix the error as if fsck.ocfs2 -y
> + * panic
> + */
> +static int ocfs2_handle_error(struct super_block *sb)
> {
> struct ocfs2_super *osb = OCFS2_SB(sb);
> + int rv = 0;
> +
> + ocfs2_set_osb_flag(osb, OCFS2_OSB_ERROR_FS);
> + pr_crit("On-disk corruption discovered. "
> + "Please run fsck.ocfs2 once the filesystem is unmounted.\n");
>
> - if (osb->s_mount_opt & OCFS2_MOUNT_ERRORS_PANIC)
> + if (osb->s_mount_opt & OCFS2_...
2009 Jul 20
1
[PATCH] ocfs2: flush dentry lock drop when sync ocfs2 volume.
In commit ea455f8ab68338ba69f5d3362b342c115bea8e13, we move the
dentry lock put process into ocfs2_wq. This is OK for most case,
but as for umount, it lead to at least 2 bugs. See
http://oss.oracle.com/bugzilla/show_bug.cgi?id=1133 and
http://oss.oracle.com/bugzilla/show_bug.cgi?id=1135. And it happens
easily if we have opened a lot of inodes.
For 1135, the reason is that during umount will call