Skip to content

Commit 94a76d9

Browse files
committed
Merge tag 'for-linus-5.3-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/ubifs
Pull UBIFS and JFFS2 fixes from Richard Weinberger: "UBIFS: - Don't block too long in writeback_inodes_sb() - Fix for a possible overrun of the log head - Fix double unlock in orphan_delete() JFFS2: - Remove C++ style from UAPI header and unbreak picky toolchains" * tag 'for-linus-5.3-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/rw/ubifs: ubifs: Limit the number of pages in shrink_liability ubifs: Correctly initialize c->min_log_bytes ubifs: Fix double unlock around orphan_delete() jffs2: Remove C++ style comments from uapi header
2 parents 146c3d3 + 0af83ab commit 94a76d9

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

fs/ubifs/budget.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
static void shrink_liability(struct ubifs_info *c, int nr_to_write)
5252
{
5353
down_read(&c->vfs_sb->s_umount);
54-
writeback_inodes_sb(c->vfs_sb, WB_REASON_FS_FREE_SPACE);
54+
writeback_inodes_sb_nr(c->vfs_sb, nr_to_write, WB_REASON_FS_FREE_SPACE);
5555
up_read(&c->vfs_sb->s_umount);
5656
}
5757

fs/ubifs/orphan.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,6 @@ static void __orphan_drop(struct ubifs_info *c, struct ubifs_orphan *o)
129129
static void orphan_delete(struct ubifs_info *c, struct ubifs_orphan *orph)
130130
{
131131
if (orph->del) {
132-
spin_unlock(&c->orphan_lock);
133132
dbg_gen("deleted twice ino %lu", orph->inum);
134133
return;
135134
}
@@ -138,7 +137,6 @@ static void orphan_delete(struct ubifs_info *c, struct ubifs_orphan *orph)
138137
orph->del = 1;
139138
orph->dnext = c->orph_dnext;
140139
c->orph_dnext = orph;
141-
spin_unlock(&c->orphan_lock);
142140
dbg_gen("delete later ino %lu", orph->inum);
143141
return;
144142
}

fs/ubifs/super.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,10 @@ static int init_constants_early(struct ubifs_info *c)
609609
c->max_bu_buf_len = UBIFS_MAX_BULK_READ * UBIFS_MAX_DATA_NODE_SZ;
610610
if (c->max_bu_buf_len > c->leb_size)
611611
c->max_bu_buf_len = c->leb_size;
612+
613+
/* Log is ready, preserve one LEB for commits. */
614+
c->min_log_bytes = c->leb_size;
615+
612616
return 0;
613617
}
614618

include/uapi/linux/jffs2.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,6 @@
7777

7878
#define JFFS2_ACL_VERSION 0x0001
7979

80-
// Maybe later...
81-
//#define JFFS2_NODETYPE_CHECKPOINT (JFFS2_FEATURE_RWCOMPAT_DELETE | JFFS2_NODE_ACCURATE | 3)
82-
//#define JFFS2_NODETYPE_OPTIONS (JFFS2_FEATURE_RWCOMPAT_COPY | JFFS2_NODE_ACCURATE | 4)
83-
84-
8580
#define JFFS2_INO_FLAG_PREREAD 1 /* Do read_inode() for this one at
8681
mount time, don't wait for it to
8782
happen later */

0 commit comments

Comments
 (0)