On Mon, Jun 9, 2014 at 6:31 PM,  <sf...@users.sourceforge.net> wrote:
>
> Would you try testing after this fix?
> - new tmpfs-idr.patch removes a line from
>   linux/mm/shmem.c:shmem_get_inode() like this.
> ... ...
>
> - insert this line at the removed line like this.
>         inode->i_ino = get_next_ino();
>         --> inode->i_ino = 0;
>

I get similar messages like above. After this change:

[   48.287961] ------------[ cut here ]------------
[   48.287973] WARNING: CPU: 0 PID: 1283 at lib/idr.c:527
idr_remove.part.6+0x1fb/0x200()
[   48.287975] idr_remove called for id=32768 which is not allocated.
[   48.287977] Modules linked in: pci_stub vboxpci(O) vboxnetadp(O)
vboxnetflt(O) vboxdrv(O) msr cpufreq_stats snd_seq_dummy snd_seq_oss
snd_seq_midi_event snd_seq snd_seq_device snd_pcm_oss snd_mixer_oss
rfcomm bnep xt_multiport ip6t_REJECT ip6table_filter ip6_tables ipv6
ipt_REJECT xt_tcpudp iptable_filter ip_tables x_tables sierra
usbserial hid_generic btusb usbhid hid bluetooth tp_smapi(O)
thinkpad_ec(O) comedi_parport(C) comedi(C) pcmcia pcmcia_core
cpufreq_ondemand speedstep_lib bonding fuse snd_hda_codec_analog
joydev coretemp kvm_intel iwldvm mac80211 snd_hda_intel kvm i915
snd_hda_codec i2c_dev iwlwifi e1000e phc_intel(O) psmouse
thinkpad_acpi drm_kms_helper xhci_hcd ptp pps_core lpc_ich drm video
thermal serio_raw ehci_pci snd_hwdep processor evdev uhci_hcd
i2c_algo_bit i2c_i801 ehci_hcd cfg80211 snd_pcm nvram thermal_sys
i2c_core microcode tpm_tis freq_table battery snd_page_alloc tpm hwmon
snd_timer rfkill ac tpm_bios intel_agp intel_gtt snd agpgart soundcore
button nilfs2 loop squashfs aufs ext4 mbcache jbd2
[   48.288065] CPU: 0 PID: 1283 Comm: X Tainted: G         C O 3.12.21-smp #2
[   48.288067] Hardware name: LENOVO 1951Y2C/1951Y2C, BIOS 79ETE7WW
(2.27 ) 03/21/2011
[   48.288069]  00000000 00000000 ed2ede3c c14b0a87 ed2ede7c ed2ede6c
c1042eee c1635920
[   48.288075]  ed2ede98 00000503 c1635906 0000020f c12101ab c12101ab
ed2edea8 f502de18
[   48.288080]  00008000 ed2ede84 c1042f43 00000009 ed2ede7c c1635920
ed2ede98 ed2edec4
[   48.288086] Call Trace:
[   48.288092]  [<c14b0a87>] dump_stack+0x41/0x52
[   48.288097]  [<c1042eee>] warn_slowpath_common+0x7e/0xa0
[   48.288101]  [<c12101ab>] ? idr_remove.part.6+0x1fb/0x200
[   48.288104]  [<c12101ab>] ? idr_remove.part.6+0x1fb/0x200
[   48.288108]  [<c1042f43>] warn_slowpath_fmt+0x33/0x40
[   48.288111]  [<c12101ab>] idr_remove.part.6+0x1fb/0x200
[   48.288115]  [<c110328f>] ? shmem_truncate_range+0x2f/0x50
[   48.288118]  [<c12101bc>] idr_remove+0xc/0x10
[   48.288122]  [<c110333c>] shmem_evict_inode+0x8c/0x160
[   48.288126]  [<c1153272>] evict+0x92/0x160
[   48.288129]  [<c1153914>] iput+0xb4/0x130
[   48.288133]  [<c114fa67>] dentry_kill+0x137/0x180
[   48.288136]  [<c114fb0b>] dput+0x5b/0xf0
[   48.288140]  [<c113de6b>] __fput+0x13b/0x1f0
[   48.288143]  [<c113df5d>] ____fput+0xd/0x10
[   48.288148]  [<c105d759>] task_work_run+0x99/0xb0
[   48.288151]  [<c1002301>] do_notify_resume+0x51/0x80
[   48.288156]  [<c14b64b3>] work_notifysig+0x24/0x29
[   48.288158] ---[ end trace 3738fcdcbcd266bf ]---
[   48.325118] ------------[ cut here ]------------


stat -f gives:

  File: "/mnt"
    ID: 0        Namelen: 255     Type: tmpfs
Block size: 4096       Fundamental block size: 4096
Blocks: Total: 2621440    Free: 2576722    Available: 2576722
Inodes: Total: 217852     Free: 217697


dmesg | grep id= gives:

[   48.287975] idr_remove called for id=32768 which is not allocated.
[   48.325133] idr_remove called for id=65537 which is not allocated.
[   48.330760] idr_remove called for id=98304 which is not allocated.
[   54.296158] idr_remove called for id=131072 which is not allocated.
[   54.307677] idr_remove called for id=163841 which is not allocated.
[   54.992892] idr_remove called for id=196608 which is not allocated.
[   56.147631] idr_remove called for id=229376 which is not allocated.
[   61.290382] idr_remove called for id=262144 which is not allocated.
[   61.290954] idr_remove called for id=294912 which is not allocated.
[   68.324836] idr_remove called for id=688139 which is not allocated.
[   73.717855] idr_remove called for id=884751 which is not allocated.
[  102.239073] idr_remove called for id=950288 which is not allocated.
[  165.759135] idr_remove called for id=1015825 which is not allocated.
[  169.763863] idr_remove called for id=1146898 which is not allocated.
[  169.764244] idr_remove called for id=1081360 which is not allocated.
[  170.334123] idr_remove called for id=1277970 which is not allocated.
[  186.140583] idr_remove called for id=1212432 which is not allocated.
[  187.935577] idr_remove called for id=1409042 which is not allocated.
[  187.936220] idr_remove called for id=1343505 which is not allocated.
[  194.367908] idr_remove called for id=1474576 which is not allocated.
[  203.282958] idr_remove called for id=16 which is not allocated.
[  203.283604] idr_remove called for id=19 which is not allocated.
[  227.970044] idr_remove called for id=1540112 which is not allocated.
[  243.536592] idr_remove called for id=1605649 which is not allocated.
[  262.823942] idr_remove called for id=1802260 which is not allocated.
[  262.824805] idr_remove called for id=1736722 which is not allocated.
[  290.657614] idr_remove called for id=1933332 which is not allocated.
[  290.658078] idr_remove called for id=1867794 which is not allocated.
[  292.986590] idr_remove called for id=1998866 which is not allocated.
[  294.712483] idr_remove called for id=2129937 which is not allocated.
[  295.440983] idr_remove called for id=2195474 which is not allocated.
[  302.188044] idr_remove called for id=2064404 which is not allocated.
[  306.032552] idr_remove called for id=17 which is not allocated.
[  312.032805] idr_remove called for id=18 which is not allocated.
[  312.033252] idr_remove called for id=19 which is not allocated.
[  312.036421] idr_remove called for id=16 which is not allocated.

Regards,
Guan

------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems

Reply via email to