From bcd926182b23eef577723d780b1ff0dfb4a09fce Mon Sep 17 00:00:00 2001 From: Boaz Harrosh Date: Thu, 3 Sep 2009 20:38:02 +0300 Subject: [PATCH] --- yaml --- r: 174355 b: refs/heads/master c: 19fe294f2eaee33574ac1fdcf3cc26880de820ea h: refs/heads/master i: 174353: 63dc2f55a20fd590b6a52497fdf6988df4890574 174351: 962fa87ab2067d7d45867af3d00708fe4460ca8c v: v3 --- [refs] | 2 +- trunk/fs/exofs/super.c | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 7c6ed72dcc79..8b5238ed05a3 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 9cfdc7aa9f1b59627029ad00a58c3f59eb2cc383 +refs/heads/master: 19fe294f2eaee33574ac1fdcf3cc26880de820ea diff --git a/trunk/fs/exofs/super.c b/trunk/fs/exofs/super.c index 9f500dec3b59..920f0165edf3 100644 --- a/trunk/fs/exofs/super.c +++ b/trunk/fs/exofs/super.c @@ -257,6 +257,15 @@ static void exofs_write_super(struct super_block *sb) sb->s_dirt = 0; } +static void _exofs_print_device(const char *msg, const char *dev_path, + struct osd_dev *od, u64 pid) +{ + const struct osd_dev_info *odi = osduld_device_info(od); + + printk(KERN_NOTICE "exofs: %s %s osd_name-%s pid-0x%llx\n", + msg, dev_path ?: "", odi->osdname, _LLU(pid)); +} + /* * This function is called when the vfs is freeing the superblock. We just * need to free our own part. @@ -279,6 +288,7 @@ static void exofs_put_super(struct super_block *sb) msecs_to_jiffies(100)); } + _exofs_print_device("Unmounting", NULL, sbi->s_dev, sbi->s_pid); osduld_put_device(sbi->s_dev); kfree(sb->s_fs_info); sb->s_fs_info = NULL; @@ -395,6 +405,7 @@ static int exofs_fill_super(struct super_block *sb, void *data, int silent) goto free_sbi; } + _exofs_print_device("Mounting", opts->dev_name, sbi->s_dev, sbi->s_pid); ret = 0; out: if (or)