RETURN(0);
}
-static char* ll_d_path(struct dentry *dentry, char *buf, int bufsize)
-{
- char *path = NULL;
-
- struct path p;
-
- p.dentry = dentry;
- p.mnt = current->fs->root.mnt;
- path_get(&p);
- path = d_path(&p, buf, bufsize);
- path_put(&p);
- return path;
-}
-
void ll_dirty_page_discard_warn(struct page *page, int ioret)
{
- char *buf, *path = NULL;
- struct dentry *dentry = NULL;
struct inode *inode = page->mapping->host;
- /* this can be called inside spin lock so use GFP_ATOMIC. */
- buf = (char *)__get_free_page(GFP_ATOMIC);
- if (buf != NULL) {
- dentry = d_find_alias(page->mapping->host);
- if (dentry != NULL)
- path = ll_d_path(dentry, buf, PAGE_SIZE);
- }
-
/* The below message is checked in recovery-small.sh test_24b */
CDEBUG(D_WARNING,
- "%s: dirty page discard: %s/fid: "DFID"/%s may get corrupted "
+ "%s: dirty page discard: %s/fid: "DFID" may get corrupted "
"(rc %d)\n", ll_i2sbi(inode)->ll_fsname,
s2lsi(page->mapping->host->i_sb)->lsi_lmd->lmd_dev,
- PFID(ll_inode2fid(inode)),
- (path && !IS_ERR(path)) ? path : "", ioret);
-
- if (dentry != NULL)
- dput(dentry);
-
- if (buf != NULL)
- free_page((unsigned long)buf);
+ PFID(ll_inode2fid(inode)), ioret);
}
ssize_t ll_copy_user_md(const struct lov_user_md __user *md,