resync 2.6.31 patches

SVN-Revision: 17991
This commit is contained in:
Imre Kaloz 2009-10-08 09:13:14 +00:00
parent ba971b8852
commit 167d52386e
2 changed files with 11 additions and 11 deletions

View file

@ -1,6 +1,6 @@
--- a/fs/jffs2/dir.c
+++ b/fs/jffs2/dir.c
@@ -34,6 +34,9 @@
@@ -34,6 +34,9 @@ static int jffs2_mknod (struct inode *,s
static int jffs2_rename (struct inode *, struct dentry *,
struct inode *, struct dentry *);
@ -10,7 +10,7 @@
const struct file_operations jffs2_dir_operations =
{
.read = generic_read_dir,
@@ -55,6 +58,8 @@
@@ -55,6 +58,8 @@ const struct inode_operations jffs2_dir_
.rmdir = jffs2_rmdir,
.mknod = jffs2_mknod,
.rename = jffs2_rename,
@ -19,7 +19,7 @@
.permission = jffs2_permission,
.setattr = jffs2_setattr,
.setxattr = jffs2_setxattr,
@@ -98,8 +103,21 @@
@@ -98,8 +103,21 @@ static struct dentry *jffs2_lookup(struc
fd = fd_list;
}
}
@ -43,7 +43,7 @@
mutex_unlock(&dir_f->sem);
if (ino) {
inode = jffs2_iget(dir_i->i_sb, ino);
@@ -155,7 +173,9 @@
@@ -155,7 +173,9 @@ static int jffs2_readdir(struct file *fi
fd->name, fd->ino, fd->type, curofs, offset));
continue;
}
@ -54,7 +54,7 @@
D2(printk(KERN_DEBUG "Skipping deletion dirent \"%s\"\n", fd->name));
offset++;
continue;
@@ -498,6 +518,11 @@
@@ -498,6 +518,11 @@ static int jffs2_mkdir (struct inode *di
return PTR_ERR(inode);
}
@ -66,7 +66,7 @@
inode->i_op = &jffs2_dir_inode_operations;
inode->i_fop = &jffs2_dir_operations;
@@ -779,6 +804,82 @@
@@ -779,6 +804,82 @@ static int jffs2_mknod (struct inode *di
return 0;
}
@ -151,7 +151,7 @@
{
--- a/fs/jffs2/fs.c
+++ b/fs/jffs2/fs.c
@@ -301,6 +301,10 @@
@@ -301,6 +301,10 @@ struct inode *jffs2_iget(struct super_bl
inode->i_op = &jffs2_dir_inode_operations;
inode->i_fop = &jffs2_dir_operations;
@ -164,7 +164,7 @@
case S_IFREG:
--- a/fs/jffs2/super.c
+++ b/fs/jffs2/super.c
@@ -172,7 +172,7 @@
@@ -172,7 +172,7 @@ static int jffs2_fill_super(struct super
sb->s_op = &jffs2_super_operations;
sb->s_export_op = &jffs2_export_ops;

View file

@ -1,6 +1,6 @@
--- a/fs/union.c
+++ b/fs/union.c
@@ -842,10 +842,8 @@
@@ -842,10 +842,8 @@ static int union_copyup_dir_one(void *bu
/* Lookup this entry in the topmost directory */
dentry = lookup_one_len(name, topmost_dentry, namlen);
@ -12,7 +12,7 @@
/*
* If the entry already exists, one of the following is true:
@@ -857,7 +855,6 @@
@@ -857,7 +855,6 @@ static int union_copyup_dir_one(void *bu
*/
if (dentry->d_inode || d_is_whiteout(dentry) ||
d_is_fallthru(dentry)) {
@ -20,7 +20,7 @@
goto out_dput;
}
@@ -867,7 +864,6 @@
@@ -867,7 +864,6 @@ static int union_copyup_dir_one(void *bu
* used, so each file system must implement its own way of
* storing a fallthru entry.
*/