openwrt/target/linux
Jing Qiu 638ca50f3b kernel: Fix the incorrect i_nlink count after jffs2's RENAME_EXCHANGE operations.
The problem is caused by the incorrect handling of the parent inode's
i_nlink count for the dentry to be RENAME_EXCHANGED. There are 3 cases
to consider. Assume we want to RENAME_EXCHANGE struct dentry *a and
struct dentry *b, and inode_a is pointed to by dentry_a, inode_b is
pointed to by dentry_b:

1. If inode_a is a directory, but inode_b isn't, then we must decrease
   the i_nlink count of old_dir_i, and increase the i_nlink of new_dir_i.
2. If inode_a isn't a directory, but inode_b is a directory, then we
   must increase the i_nlink of old_dir_i, and decrease the i_nlink count
   of new_dir_i.
3. If the types of inode_a and inode_b are the same, we don't change the
   i_nlink for either old_dir_i or new_dir_i.

Signed-off-by: Jing Qiu <aqiu0720@gmail.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2017-04-05 09:57:41 +02:00
..
adm5120 Mark targets using kernel 3.18 as source-only 2017-02-17 06:58:33 +01:00
adm8668 Mark targets using kernel 3.18 as source-only 2017-02-17 06:58:33 +01:00
apm821xx kernel: update 4.4 kernel to 4.4.42 2017-01-13 23:05:36 +01:00
ar7 Mark targets using kernel 3.18 as source-only 2017-02-17 06:58:33 +01:00
ar71xx ar71xx: fix Wallys DR344 ethernet MAC addresses offsets 2017-04-02 15:09:09 +02:00
arc770 arc770: only calculate entry point address when necessary 2017-03-01 20:37:37 +01:00
archs38 archs38: only calculate entry point address when necessary 2017-03-01 20:37:37 +01:00
arm64 Revert "arm64: boot-wrapper: Add mirror" 2016-12-22 21:08:17 +01:00
armvirt armvirt: add kernel config change missing from 0d44f0cb 2017-01-13 11:05:32 +01:00
at91 kernel: remove ubifs xz decompression support 2017-01-09 14:07:06 +01:00
ath25 kernel: backport MIPS changes introducing a separate IRQ stack 2017-01-15 18:25:54 +01:00
au1000 Mark targets using kernel 3.18 as source-only 2017-02-17 06:58:33 +01:00
bcm53xx bcm53xx: backport accepted BCM5301X and BCM53573 patches 2017-03-03 11:41:10 +01:00
brcm47xx kernel: update kernel 4.4 to 4.4.59 2017-04-02 14:37:49 +02:00
brcm63xx kernel: update kernel 4.4 to version 4.4.50 2017-02-20 16:02:54 +01:00
brcm2708 kernel: update kernel 4.4 to 4.4.59 2017-04-02 14:37:49 +02:00
cns3xxx kernel: update kernel 4.4 to 4.4.59 2017-04-02 14:37:49 +02:00
gemini gemini: rename config-default to config-4.4 2016-08-24 01:44:05 +03:00
generic kernel: Fix the incorrect i_nlink count after jffs2's RENAME_EXCHANGE operations. 2017-04-05 09:57:41 +02:00
imx6 kernel: update kernel 4.4 to 4.4.59 2017-04-02 14:37:49 +02:00
ipq806x kernel: update kernel 4.4 to version 4.4.47 2017-02-06 20:13:06 +01:00
ixp4xx ixp4xx: drop 3.18 config/patches 2017-01-02 21:06:13 +01:00
kirkwood kirkwood: fix include in etc/board.d/02_network 2017-03-01 20:37:37 +01:00
lantiq kernel: update kernel 4.4 to 4.4.59 2017-04-02 14:37:49 +02:00
layerscape kernel: update kernel 4.4 to version 4.4.50 2017-02-20 16:02:54 +01:00
malta malta: mark as source-only to avoid wasting build resources 2017-01-24 13:35:47 +01:00
mcs814x Mark targets using kernel 3.18 as source-only 2017-02-17 06:58:33 +01:00
mediatek Kernel: bump to 4.4.44 2017-02-06 20:13:06 +01:00
mpc85xx kernel: remove DEVMEM/DEVKMEM platform overrides 2017-01-10 13:48:53 +01:00
mvebu mvebu: wrt3200acm enable SDIO interface 2017-03-11 20:34:33 +01:00
mxs mxs: remove stale references to obsolete kernel module packages 2017-01-28 20:32:39 +01:00
octeon octeon: only copy sysupgrade file if present 2017-02-15 09:37:15 +01:00
omap omap: build various core drivers into the kernel instead of packaging them 2017-01-10 13:44:26 +01:00
omap24xx kernel: clean up usb gadget support 2016-09-15 13:11:21 +02:00
orion kernel: remove DEVMEM/DEVKMEM platform overrides 2017-01-10 13:48:53 +01:00
oxnas kernel: remove ubifs xz decompression support 2017-01-09 14:07:06 +01:00
ppc40x build: fix subtarget descriptions 2016-09-04 13:35:11 +02:00
ppc44x ppc44x: mark as broken 2017-01-10 12:49:34 +01:00
ramips kernel: update kernel 4.4 to 4.4.59 2017-04-02 14:37:49 +02:00
rb532 kernel: remove ubifs xz decompression support 2017-01-09 14:07:06 +01:00
sunxi sunxi: use fwtool for checking sdcard images 2017-01-05 11:09:15 +01:00
uml uml: mark as source-only 2017-01-24 13:35:47 +01:00
x86 x86/64: Enable GPIO sysfs & GPIO LED support 2017-03-01 20:37:35 +01:00
xburst Mark targets using kernel 3.18 as source-only 2017-02-17 06:58:33 +01:00
zynq kernel: remove DEVTMPFS platform overrides 2017-01-10 13:48:53 +01:00
Makefile